/* 头部开始 */
/* header是顶层黑色导航栏 */
.header{
    width: 100%;
    height: 40px;
    background-color: #333;
    /* 上下字体居中 */
    line-height: 40px;
    color: #b0b0b0;
    font-size: 12px;
}
/* warp是水平居中的容器,这样可以使黑色之中的文字居中 */
/* 如果有时候费劲的话，可以设一个backgroud-color */
.wrap{
    width: 1226px;
    margin: 0 auto;
    height: 40px;
    /* background-color: red; */
}
/* header-left和header-right为黑色导航栏里左右浮动 */
.header-left{
    float: left;
}
.header-right{
    float: right;
}
/* 设置header中的li都左浮动，才让下拉列表改成横向列表 */
.header li{
    float: left;
    position: relative;
}
.header a{
    color:#b0b0b0;
}
.header span{
    color: #424242;
    margin: 0 3.6px;
}
/* 鼠标悬停字体颜色变白 */
.header a:hover{
    color: #fff;
}
/* 购物车样式 */
.cart{
    z-index: 850;
    /* 相对定位 */
    position: relative;
    margin-left: 25px;
    width: 120px;
    height: 40px;
    background-color: #424242;

    /* 光标放上去变成小手 */
    cursor: pointer;
    /* 变小手之前有一个过度阴影 */
    transform: all .2s;
}
.cart i{
    margin-left: 25px;
    font-weight: 900px;
}
/* cart悬停时候小车颜色 */
.cart:hover{
    background-color: #fff;
}
/* cart悬停时候字体颜色 */
.cart:hover a{
    color: #ff6700;
}
.cart-list{
    /* 绝对定位 */
    position: absolute;
    top: 40px;
    right: 0;
    width: 316px;
    height:0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);

    /* 设置其中字体 */
    color: #424242;
    /* 垂直居中 */
    /* line-height: 0; */
    /* 横向居中 */
    text-align: center;

    /* 高度设置为0的情况下，文字溢出 */
    transition: all .3s;
    overflow: hidden;
}
/* 鼠标悬停在父元素的时候出来 */
.cart:hover>.cart-list{
    /* 不要用display的方式，因为display不能过度 */
    height: 100px;
    line-height: 100px;
}
/* 下载app部分设置样式 */
.download{
    z-index: 900;
    position: absolute;
    /* 编写居中 */
    /* top: 40px; */
    /* left: 50%; */
    /* 设置偏移量,宽的一半 */
    /* margin-left: 62px; */

    /* width: 124px; */
    height: 0px;
    background-color: #fff;
    box-shadow: 0 1px 5px #ccc;

    /* 因为height设置为0，内容溢出，所以需要设置overflow */
    overflow: hidden;

    /* 慢慢弹出框 */
    transition: all .3s;
}
.download img{
    width: 90px;
    margin: 18px 18px 0 12px;
}
.download p{
    color:#333;
    font-size: 14px;
    line-height: 14px;
    text-align:center;
}
/* 悬停到下载部分，出现下载的框 */
.header-left>li:hover>.download{
    height: 148px;
}
/* 三角形 */
.triangle{
    position: absolute;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    margin-left: -8px;
    border-bottom: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    display: none;
}
/* 鼠标悬停展示小三角 */
.header-left>li:hover>.triangle{
    display: block;
}
/* 头部结束 */

/* 导航样式开始 */
.nav{
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}
.logo{
    width: 62px;
    height: 56px;

    float: left;
    text-align: left;
    margin-top: 22px;

    user-select: none;
}
.search{
    position: relative;
    width: 296px;
    height: 50px;

    float: left;
    margin-top: 25px;
}
.nav-bar{
    width: 868px;
    height: 100px;

    float: left;

    /* 内容据我左侧的距离为172 */
    padding-left: 172px;

    user-select: none;
    box-sizing: border-box;
}
.logo img{
    width: 56px;

}
/* 鼠标悬停的时候让logo往右走一点点 */
.logo img:hover{
    transform: translate(3px);
}
.nav-bar>ul>li{
    height: 100px;
    float:left;
    padding: 38px 10px;
    box-sizing: border-box;
}
.nav-bar>ul>li>a:hover{
    color: #ff6700;
}

/* 设置搜索框 */
.search>input{
    float: left;
    width: 245px;
    height: 50px;
    border: 1px solid #e0e0e0;
    padding: 0 10px;
    box-sizing: border-box;
    border-right: none;
    outline: none;
    transition: all .2s;
}
.search>a{
    float: left;
    padding-left: 12px;
    width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
    font-size: 24px;
    color: #616161;
    line-height: 48px;
    transition: all .3s;
}
.search>a:hover{
    background-color: #ff6700;
    border-color: #ff6700;
    clear: #fff;
}
.search>input:hover,.search>input:hover+a{
    border-color: #b0b0b0;
}
.search>input:focus,.search>input:focus+a{
    border-color: #ff6700;
}
/* 下拉列表 */
.nav-bar-list{
    z-index: 10000;
    position: absolute;
    left: 0;
    top: 100px;
    width: 100%;
    height: 229px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 3px 4px rgb(0,0,0,.18);
    display: none;
}
.nav-bar li:hover>.nav-bar-list{
    display: block;
}
.nav-bar-list li{
    float: left;
    width: 204px;
    padding-top: 35px;
}
.img-box{
    width: 100%;
    height: 110px;
    border-right: 1px solid #e0e0e0;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.img-box>img{
    width: 200px;
    height: 150px;
}
.name1,.price1{
    text-align: center;
    font-size: 12px;
    line-height: 20px;
}
.price1{
    color: #ff6700;
}
/* nav-bar-list中最后一个li取消竖线 */
.nav-bar-list li:last-child .img-box{
    border-right: none;
}

/* 搜索框部分 */
.search-list{
    z-index: 800;
    position: absolute;
    top: 50px;
    left: 0;
    width: 246px;
    height: 241px;
    border: 1px solid #ff6700;
    border-top: none;
    box-sizing: border-box;
    background-color: #fff;
    display: none;
}
.search>input:focus~.search-list{
    display: block;
}
.search-list>a{
    width: 243px;
    height: 30px;
    padding: 6px 15px;
    display: block;
    box-sizing: border-box;
    color: #424242;
    font-size: 12px;
    text-align: left;
}
/* 导航样式结束 */

/* banner开始 */
.banner{
    width: 100%;
    height: 460px;
    position: relative;
}
.banner-box{
    z-index: 600;
    width: 1226px;
    height: 460px;
    background-image: url(../images/xm/banner-background1.png);
    background-size: 100%;

    animation: banner 5s infinite linear;
}
.banner-box:hover{
    animation-play-state: paused;
}
/* 编写动画图片轮播 */
@keyframes banner{
    0%{
        background-image: url(../images/xm/banner-background1.png);
    }
    50%{
        background-image: url(../images/xm/banner-background2.png);
    }
    100%{
        background-image: url(../images/xm/banner-background3.png);
    }
}
/* 滑动门部分开始 */
.banner>.wrap{
    position: relative;
}
.slide{
    position: absolute;
    left: 0;
    top: 0;
    width: 234px;
    height: 420px;
    padding:20px 0;
    background-color: rgba(114, 113, 113,0.5)
}
.slide>ul>li{
    height: 42px;
    line-height: 42px;
    text-align: left;

    /* 调距离的时候magin也行padding也行，但是magin没有背景颜色 */
    padding-left: 30px;
}
.slide>ul>li:hover{
    background-color: #ff6700;
}
.slide>ul>li>a{
    color: #fff;
    font-size: 14px;
}
.slide i{
    float:right;

    /* 调整距离magin、padding都行 */
    margin-right: 20px;

    font-size: 14px;
}
.slide-list{
    z-index:800;
    display: none;
    position: absolute;
    width: 992px;
    top: 0;
    left: 234px;
    height: 456px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-left: none;
    padding-top: 2px;

    box-shadow: 0 8px 16px rgba(0,0,0,.18);
}
.slide li:hover>.slide-list{
    display: block;
}
.slide-list>ul{
    width: 248px;
    float: left;
}
.slide-list li{
    text-align: center;
    width: 100%;
    height: 76px;
    padding: 18px 0 18px 20px;
    box-sizing: border-box;
}
.slide-list img{
    float: left;
    margin-right: 12px;
    width: 50px;
    height: 50px;
}
.slide-list p{
    display:inline;
    text-align: center;
}
.slide-list li:hover p{
    color: #ff6700;
}
/* 滑动门部分结束 */
/* 左右箭头 */
.prev,.next{
    z-index: index 600;
    position: absolute;
    top: 50%;
    margin-top: 180px;
    width: 41px;
    height: 69px;
    /* background-color: red; */
}
.prev{
    left: 234px;
    background-image: url(../images/xm/to_left.png);
    background-position: center;
}
.next{
    right: 0;
    background-image: url(../images/xm/to_right.png);
    background-position: center;
}
.prev:hover,.next:hover{
    background-image: url(none);
    background-color: #000000;
    transition: all .3s;
    /* 悬停变成手 */
    cursor: pointer;
}
/* banner结束 */

/* 广告开始 */
.adv{
    width: 100%;
    height: 170px;
    margin: 14px 0 26px;
}
.adv-aside{
    width: 234px;
    height: 170px;
    padding: 3px;
    box-sizing: border-box;
    background-color: #5f5750;
    float: left;
}
.adv-img{
    z-index: 800;
    width: 316px;
    height: 670px;
    float: left;
    margin-left: 14.6px;
    transition: all .3s linear;
}
/* 控制图的大小 */
.adv-img img{
    width: 100%;
    /* height: 233px; */
}
.adv-img:hover{
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
/* 广告结束 */